#ifndef NETWORKBYTEARRAY_H
#define NETWORKBYTEARRAY_H

#include "Array.h"
class NetworkByteArray : public Array<char>
{
public:
    NetworkByteArray();
    NetworkByteArray( const NetworkByteArray& copy);
    ~NetworkByteArray();

	unsigned char getUnsignedChar( int position );
	unsigned int getUnsignedInt( int position );
	float getFloat( int position );
	std::string getString( int position, int lenght );
	
	void pushUnsignedChar( unsigned char uc );
	void pushUnsignedInt( unsigned int ui );
	void pushFloat( float f );
	void pushString( std::string s );
	
	// Insert the size of the real data at the begining of the array
	void insertDataSize();
	unsigned int getDataSize();
	void removeDataSize();
};

#endif
